# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=ktimetracker
pkgver=5.0.1
pkgrel=1
pkgdesc='Todo management and time tracker'
url='https://userbase.kde.org/KTimeTracker'
license=(GPL2)
arch=(loong64 x86_64)
depends=(kio kcalendarcore kidletime hicolor-icon-theme)
makedepends=(extra-cmake-modules kdoctools)
source=("https://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
sha256sums=('02e8620164357e594e135e20d8efd3987cc9c31a817c25e5555914e0971be64a'
            'SKIP')
validpgpkeys=(D7A4AE3E9A5A18C98F36477DC7AF5D57818E49C3) # Alexander Potashev <aspotashev@gmail.com>

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DBUILD_TESTING=OFF
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}
